export function getUrlKey(name, url) {
  const value = decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(url) || [, ''])[1].replace(/\+/g, '%20')) || null
  if (value == null) {
    return 1
  }
  return value
}
